package com.project.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 库存商品实体类
 */
@ApiModel(value = "商品实体类",description = "记录商品信息")
@TableName("t_product")
public class ProductBean {
    /**编号**/
    @ApiModelProperty("编号")
    @TableId(value = "pk_productId")
    private String id;
    /**商品名**/
    @ApiModelProperty("商品名")
    @TableField("p_name")
    private String name;
    /**品牌**/
    @ApiModelProperty("品牌")
    @TableField("p_brand")
    private String brand;
    /**种类**/
    @ApiModelProperty("种类")
    @TableField("p_kind")
    private String kind;
    /**库存数量**/
    @ApiModelProperty("库存数量")
    @TableField("p_num")
    private Integer num;
    /**采购价格**/
    @ApiModelProperty("采购价格")
    @TableField("p_buyPrice")
    private Integer buyPrice;
    /**销售价格**/
    @ApiModelProperty("销售价格")
    @TableField("p_salePrice")
    private Integer salePrice;
    /**图片**/
    @ApiModelProperty("图片")
    @TableField("p_img")
    private String img;

    public ProductBean() {
    }

    public ProductBean(String id, String name, String brand, String kind, Integer num, Integer buyPrice, Integer salePrice, String img) {
        this.id = id;
        this.name = name;
        this.brand = brand;
        this.kind = kind;
        this.num = num;
        this.buyPrice = buyPrice;
        this.salePrice = salePrice;
        this.img = img;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getBuyPrice() {
        return buyPrice;
    }

    public void setBuyPrice(Integer buyPrice) {
        this.buyPrice = buyPrice;
    }

    public Integer getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(Integer salePrice) {
        this.salePrice = salePrice;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    @Override
    public String toString() {
        return "ProductBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", brand='" + brand + '\'' +
                ", kind='" + kind + '\'' +
                ", num=" + num +
                ", buyPrice=" + buyPrice +
                ", salePrice=" + salePrice +
                ", img='" + img + '\'' +
                "\n";
    }
}
